<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">提现申请</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
    <label class="sr-only" >平台流水号</label>
      <input type="text" class="form-control" placeholder="平台流水号" ng-model="searchMap.platSerialNo">
    </div>
    <div class="form-group">
    <label class="sr-only" >订单号</label>
      <input type="text" class="form-control" placeholder="订单号" ng-model="searchMap.id">
    </div>
    <div class="form-group">
    <label class="sr-only" >支付日期</label>
      <input type="text" class="form-control" placeholder="支付日期" ng-model="searchMap.payDate">
    </div>
    <div class="form-group">
      <label class="sr-only" >支付类型</label>
      <select class="form-control" ng-model="searchMap.amountType" placeholder="支付类型">
        <option value="">--支付类型--</option>
        <option value="01">保证金</option>
        <option value="02">佣金</option>
      </select>
    </div>
    <div class="form-group">
    <label class="sr-only" >持卡人姓名</label>
      <input type="text" class="form-control" placeholder="持卡人姓名" ng-model="searchMap.cardCarrier">
    </div> 
    <button type="submit" class="btn btn-primary">查询</button>
  </form>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="">提现流水号</th>
        <th width="">订单编号</th>
        <th width="">申请提现日期</th>
        <th width="">提现类型</th>
        <th width="">处理日期</th>
        <th width="">提现金额</th>
        <th width="">提现状态</th>
        <th width="">提现银行</th>
        <th width="">提现银行帐号</th>
        <th width="">持卡人姓名</th>
         <th width="">faId</th>
        <th width="">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="w in withdraws">
        <td>{{w.platSerialNo}}</td>
        <td>{{w.id}}</td>
        <td>{{w.withDrawDate | date : "yyyy-MM-dd HH:mm:ss"}}</td>
        <td>{{w.amountType | fetchStatusRenter}}</td>
        <td>{{w.updateDate | date : "yyyy-MM-dd HH:mm:ss"}}</td>
        <td>{{w.amount | moneyRender2}}</td>
        <td>{{w.operateType | operateTypeModelRenter}}</td>
        <td>{{w.bankName}}</td>
        <td>{{w.cardNo}}</td>
        <td>{{w.cardCarrier}}</td>
        <td>{{w.faId}}</td>
        <td><a href="#/im/drawAskFor/detail?id={{w.id}}">详情</a> <a href="javascript:;" ng-show="w.operateType=='03'" ng-click="showHide(1,$index)">确认转账</a> <a href="javascript:;" ng-click="showHide(2,$index)" ng-show="w.operateType=='03'">转账失败</a> </td>
      </tr>
    </tbody>
  </table>
<div class="layer-box" ng-show="transferAcoutsFail">
    <div class="layer-bg"></div>
    <div class="layer-con " style="padding:10px 20px;">
        <span>转账失败</span>
        <span class="icons-close" title="关闭" ng-click="transferAcoutsFail = false;">X</span>
            <div class="con-wrap">
                <div class="form-group">
                    <textarea style="width: 300px;height: 100px;" ng-model="failReson" required="required" placeholder="请输入转账失败原因"></textarea>
                </div>
                <div class="form-group" >
                    <input type="button" class="btn btn-block btn-primary" value="确认" ng-click="submit('stg')" />
                </div>
            </div>
    </div>
</div>

<div class="layer-box" ng-show="payMoneyCheck">
    <div class="layer-bg"></div>
    <div class="layer-con " style="padding:10px 20px;">
        <span>请核对</span>
        <span class="icons-close" title="关闭" ng-click="payMoneyCheck = false;">X</span>
        <div class="content text-left">
          {{withdraws[listIndex].amount  | moneyRender2}} 已达到<br>
          {{withdraws[listIndex].cardNo}}银行卡 <br>
          持卡人  {{withdraws[listIndex].cardCarrier}}
        </div>
        <div class="con-wrap">
            <div class="form-group" >
                <input type="button" class="btn btn-block btn-primary" ng-click="submit()" value="确认" />
            </div>
        </div>
    </div>
</div>
  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="withdraws.length > 0"></div>
</div>
